-- GENERATED SPELL FOR [Eonar's Gift] --


function spell0_33228(pUnit, Event) --@Lifebinder\'s Gift,n/a--
pUnit:FullCastSpellOnTarget(62584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33228', 681, 1)
end

function spell1_33228(pUnit, Event) --@Lifebinder\'s Gift,n/a--
pUnit:FullCastSpellOnTarget(64185,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33228', 553, 1)
end

function spell2_33228(pUnit, Event) --@Pheromones,Self--
pUnit:FullCastSpellOnTarget(62619,pUnit)
pUnit:RegisterEvent('Sorts_33228', 651, 1)
end

function Sorts_33228(pUnit, Event)
local choix_sorts_33228 = math.random(0, 2)
if choix_sorts_33228 == 0 then
pUnit:RegisterEvent('spell0_33228', 1, 1)
end
if choix_sorts_33228 == 1 then
pUnit:RegisterEvent('spell1_33228', 1, 1)
end
if choix_sorts_33228 == 2 then
pUnit:RegisterEvent('spell2_33228', 1, 1)
end
end

function mob33228_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33228', math.random(1500, 3000), 1)
end

function mob33228_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33228_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33228_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33228, 1, 'mob33228_Action')
RegisterUnitEvent(33228, 2, 'mob33228_Leave')
RegisterUnitEvent(33228, 3, 'mob33228_Kill')
RegisterUnitEvent(33228, 4, 'mob33228_Die')
